package com.medusa.aps.business.modules.basic.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.medusa.aps.business.model.pagination.Page;
import com.medusa.aps.business.modules.basic.model.input.WorkshopDTO;
import com.medusa.aps.business.modules.basic.model.input.WorkshopParam;
import com.medusa.aps.business.modules.basic.mp.entity.Workshop;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author baomidou
 * @since 2023-09-06
 */
public interface WorkshopService extends IService<Workshop> {

    /**
     * 新增车间
     *
     * @param workshops 车间列表
     */

    void saveBatchWorkshop(List<WorkshopDTO> workshops);

    /**
     * 编辑车间
     *
     * @param workshopDTO 车间DTO
     */
    void updateWorkshop(WorkshopDTO workshopDTO);

    /**
     * 分页查询车间
     *
     * @param workshopParam 车间查询参数
     */
    Page<Workshop> pageWorkshop(WorkshopParam workshopParam);
}
